package com.youi.entity;

import com.youi.common.DelStatus;

import java.io.Serializable;
import java.util.Date;


/**
 * 易宝订单流水号
 *
 * @author XJY
 */
public class Yibaopayment implements Serializable {

    private Long id;                            //ID
    private Date gmtCreated;                    //创建时间
    private Integer delStatus;                    //删除状态（0否 1是）
    private Date gmtModify;                        //最后修改时间
    private Long userId;                        //用户id
    private Long orderId;                        //订单id(已弃用)
    private Integer payType;                    //支付方式(0余额支付 1银行卡支付 2微信支付 已弃用)
    private String serialNumber;                //易宝商户订单号
    private String orderNos;                    //订单号(多个逗号隔开)
    private String paymentNo;                    //易宝支付流水号
    private Double payableAmount;                //应付金额
    private Double payAmount;                    //已付金额
    private Double realAmount;                    //实际到账金额
    private Double serviceCharge;                //手续费
    private String payData;                        //支付数据


    public Yibaopayment() {

    }

    public Yibaopayment(Long id, Date gmtCreated, Integer delStatus, Date gmtModify) {
        this.id = id;
        this.gmtCreated = gmtCreated;
        this.delStatus = delStatus;
        this.gmtModify = gmtModify;
    }


    public Yibaopayment(Long userId, String serialNumber, Double payableAmount) {
        this.gmtCreated = new Date();
        this.delStatus = DelStatus.NODEL;
        this.gmtModify = gmtCreated;
        this.userId = userId;
        this.serialNumber = serialNumber;
        this.payableAmount = payableAmount;
    }


    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setGmtCreated(Date gmtCreated) {
        this.gmtCreated = gmtCreated;
    }

    public Date getGmtCreated() {
        return gmtCreated;
    }

    public void setDelStatus(Integer delStatus) {
        this.delStatus = delStatus;
    }

    public Integer getDelStatus() {
        return delStatus;
    }

    public void setGmtModify(Date gmtModify) {
        this.gmtModify = gmtModify;
    }

    public Date getGmtModify() {
        return gmtModify;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setPaymentNo(String paymentNo) {
        this.paymentNo = paymentNo;
    }

    public String getPaymentNo() {
        return paymentNo;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setPayData(String payData) {
        this.payData = payData;
    }

    public String getPayData() {
        return payData;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public String getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
    }

    public Double getPayableAmount() {
        return payableAmount;
    }

    public void setPayableAmount(Double payableAmount) {
        this.payableAmount = payableAmount;
    }

    public Double getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(Double payAmount) {
        this.payAmount = payAmount;
    }

    public String getOrderNos() {
        return orderNos;
    }

    public void setOrderNos(String orderNos) {
        this.orderNos = orderNos;
    }

    public Double getServiceCharge() {
        return serviceCharge;
    }

    public void setServiceCharge(Double serviceCharge) {
        this.serviceCharge = serviceCharge;
    }

    public Double getRealAmount() {
        return realAmount;
    }

    public void setRealAmount(Double realAmount) {
        this.realAmount = realAmount;
    }

}
